.NET Aspire Sample Code

Aspirant: Extensions for .NET Aspire

Aspirant is a set of extensions and experiments for .NET Aspire App Host projects.

Using Keycloak in .NET Aspire projects

This article will show you how to get started with Keycloak and Aspire. It is based on Keycloak.AuthServices.Templates template. Templates make it really easy to get started.

Aspire Demo for BUILD 2024

This demo shows building a custom resource, using local azure provisioning for service bus and deployment to azure. Additionally, the demo features a sample SMTP server and testing sending email using the MailDev container

Persistent logs and traces for .NET Aspire

This post continues on from a previous post, enhancing .NET Aspire observability with Seq. Since that post was published, a Seq component has been included in .NET Aspire, making it even easier to include Seq in your .NET Aspire solution.

EventGrid Webhooks using .NET Aspire

The code in this repository shows publish and subscribe to events using event grid in .NET Aspire. The code is made up of 2 applications, EventGridDemo.Publisher and EventGridDemo.Api. The publisher application publishes events to the event grid topic, and the API application listens for events from the event grid topic.

Aspire Goes Unreal

AspireGoesUnreal is a powerful tool that allows the Unreal Engine to leverage the capabilities of the .NET Aspire framework. This plugin is designed to provide a seamless integration between Unreal Engine and .NET Aspire, enabling developers to create more complex and robust games and applications.

Garnet support now available

Microsoft Garnet support is now available! Garnet is a remote cache-store from Microsoft Research that offers strong performance (throughput and latency), scalability, storage, recovery, cluster sharding, key migration, and replication features. Garnet can work with existing Redis clients.

WaitingForDependencies in .NET Aspire

This examples shows how to extend the .NET Aspire application model to enable waiting for dependencies to be available before starting the application. It uses ASP.NET Core's health checks API to determine if specific resources are available after they are considered running.

Database migrations with Entity Framework Core sample app

This sample demonstrates how to use Entity Framework Core's migrations feature with Aspire.

Testing .NET Aspire apps

In this article, you'll learn how to create a test project, write, and run tests for your .NET Aspire apps. The tests in this article are not unit tests, but rather functional or integration tests. .NET Aspire include an xUnit testing project template that you can use to test your .NET Aspire apps. The testing project template is based on the xUnit testing framework and includes a sample test that you can use as a starting point for your tests.